<template>
    <div>
        <div class="index2">
            <div class="r1">
                <p>话题</p>
            </div>
            <div class="r2" v-for="i in 3" :key="i">
                <router-link to="/usercenter">
                <div class="r2_1">
                    <img src="https://img-static.mihoyo.com/avatar/avatar1.png" alt="">
                    <div class="r2_2">
                        <span>cdsdv</span>
                        <span>嘿嘿</span>
                    </div>
                </div>
                </router-link>
                <div class="plk">
                    <p>关注</p>
                </div>
            </div>
            <div class="index2_1">
                <p>没有更多数据</p>
            </div>
        </div>
    </div>
</template>

<script>
export default {
    data() {
        return {
            // 话题数据
            Topicdata: [
                {id: 1, img: 'https://upload-bbs.mihoyo.com/upload/2021/04/21/affd03b42eafef672eacc38647f20dde_4336963425049215104.png?x-oss-process=image/resize,s_150/quality,q_80/auto-orient,0/interlace,1/format,jpg', name: '丘丘梦工厂', title: 'v芬迪vi的四十比ubviufdbsiubusdh'},
                {id: 2, img: 'https://upload-bbs.mihoyo.com/upload/2021/04/21/affd03b42eafef672eacc38647f20dde_4336963425049215104.png?x-oss-process=image/resize,s_150/quality,q_80/auto-orient,0/interlace,1/format,jpg', name: '丘丘梦工厂', title: 'v芬迪vi的四十比ubviufdbsiubusdh'},
                {id: 3, img: 'https://upload-bbs.mihoyo.com/upload/2021/04/21/affd03b42eafef672eacc38647f20dde_4336963425049215104.png?x-oss-process=image/resize,s_150/quality,q_80/auto-orient,0/interlace,1/format,jpg', name: '丘丘梦工厂', title: 'v芬迪vi的四十比ubviufdbsiubusdh'}
            ],
        }
    }
}
</script>

<style lang="less" scoped>
    a {
        color: #999;
        text-decoration: none;
    }
    .index2 {
        background-color: white;
        margin-top: 20px;
        border-radius: 6px;
        .r1 {
            // border-bottom: 1px solid #ccc;
            display: flex;
            align-items: center;
            p {
                margin-left: 10px;
                font-size: 16px;
            }
        }
        .r2 {
            padding: 10px;
            // border: 1px solid red;
            display: flex;
            justify-content: space-between;
            border-bottom: 1px solid #ccc;
            .r2_1 {
                display: flex;
                align-items: center;
                img {
                    max-width: 60px;
                    border-radius: 50%;
                    cursor: pointer;
                }
                .r2_2 {
                    // border: 1px solid red;
                    margin-left: 10px;
                    span:nth-last-child(2):hover {
                        color: #00c3ff;
                    }
                    span:nth-last-child(2) {
                        font-size: 14px;
                        display: flex;
                        flex-wrap: wrap;
                        color: #666;
                        cursor: pointer;
                    }
                    span:nth-last-child(1) {
                        font-size: 14px;
                        display: flex;
                        flex-wrap: wrap;
                        color: #999;
                    }
                }
            }
            .plk {
                // border: 1px solid red;
                margin-right: 30px;
                p {
                    // border: 1px solid red;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border-radius: 20px;
                    background-color: #00c3ff;
                    color: white;
                    height: 26px;
                    width: 60px;
                    cursor: pointer;
                    font-size: 13px;
                }
            }
        }
        .index2_1 {
            text-align: center;
            // border: 1px solid red;
            // height: 50px;
            background-color: #fff;
            p {
                color: #999;
                padding-bottom: 10px;
                cursor: pointer;
            }
        }
    }
</style>